'use strict';
const db = uniCloud.database();
exports.main = async (event, context) => {
	//event为客户端上传的参数
	let data = JSON.parse(event.body);
	const collection = db.collection('wage')
	for (var i in data.ID){
		await collection.doc(data.ID[i]).remove();
	}
	//return await collection.doc(data.ID).remove();
};
